src_fname = '/bin/ls'
dst_fname = '/tmp/ls'
src_obj = open(src_fname, 'rb')
dst_obj = open(dst_fname, 'wb')
while True:
    data = src_obj.read(4096)
    if not data:
        break
    dst_obj.write(data)
